package com.example.demotest.service;

import com.example.demotest.pojo.dto.ChatDto;
import com.example.demotest.pojo.dto.MessageDto;
import com.example.demotest.pojo.dto.ChatCreateDto;
import com.example.demotest.pojo.dto.MessageSendDto;
import jakarta.servlet.http.HttpServletRequest;
import java.util.List;

public interface IChatService {
    ChatDto startChat(ChatCreateDto chatCreateDto, HttpServletRequest request);
    MessageDto sendMessage(Long chatId, MessageSendDto messageSendDto, HttpServletRequest request);
    List<MessageDto> getChatHistory(Long chatId);
    void endChat(Long chatId);
    List<ChatDto> getUserChats(HttpServletRequest request);
}